<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport"
    content="width=device-width, initial-scale=1.0,maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
  <title>Document</title>
  <style>

  </style>
</head>

<body>
  <button>删除</button>
  <script src="./axios.js"></script>
</body>
<script>
  document.querySelector('button').addEventListener('click', function () {
    axios({
      method: 'DELETE',//删除操作
      url: 'http://www.itcbc.com:3006/api/delbook',
      params: {
        id,
        appkey: '吱吱0208'
      }
    }).then(({ data: res }) => {
      console.log(res);
    })
  })
</script>

</html>